/**
 * 20080102 1719: Eric Kao was modified.
 */

package util.date;

import java.util.Calendar;
import java.util.Date;

import com.e885.log.E885Logger;
import com.e885.util.date.DateUtil;

/**
 * 
 * <br>
 * Copyright: Copyright (c) 2001-2008<br>
 * Company: E885 Group
 * 
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 */
public class MinusDate
{
	public MinusDate()
	{
		Date startDate;
		Date endDate;

		Calendar calendar = Calendar.getInstance();

		calendar.set( 2007, 8, 3, 8, 59, 50 );

		startDate = calendar.getTime();

		calendar.set( 2007, 8, 4, 14, 23, 30 );

		endDate = calendar.getTime();

		int minus = DateUtil.minusDate( startDate, endDate );

		E885Logger.testLog.debug( "minus:" + minus );
	}

	/**
	 * @param args
	 */
	public static void main( String[] args )
	{
		new MinusDate();
	}

}
